<%-- 
    Document   : accedi
    Created on : 24-mag-2014, 11.23.37
    Author     : Gianna
--%>

<%@page import="ejb.Utente"%>
<%@page import="java.util.List"%>
<script>
    <%
        List<Utente> listautenti = (List) request.getAttribute("listautenti");
    %>
</script> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN" dir="ltr">
    <head profile="http://gmpg.org/xfn/11">
        <title>What To Wear | Lista Utenti</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <meta http-equiv="imagetoolbar" content="no" />
        <link rel="stylesheet" href="styles/layout.css" type="text/css" />
    </head>
    <body id="top">
        <!-- ####################################################################################################### -->
        <div class="wrapper row2">
            <div class="rnd">
                <!-- ###### -->
                <div id="topnav">
                    <jsp:include page="header.jsp"/>
                </div>
                </div>
                <!-- ###### -->
            </div>
        </div>
        <br>
        <div class="wrapper row3">
            <div class="rnd" >
                <div id="container" class="clear" align="center">
                    <!-- ############ -->
                    <div id="content" align="center">
                            <%
                            out.println("<table><th>Count</th>"
                                             + "<th>ID</th>"
                                             + "<th>User</th>"
                                             + "<th>Email</th>"
                                             + "<th>Nome</th>");
                            for (int i = 0; i < listautenti.size(); i++) {

                            out.println("<tr>");
                            out.println("<td>"+i+"</td>"
                                       +"<td>"+listautenti.get(i).getId()+"</td>"
                                       +"<td>"+listautenti.get(i).getGruppo()+"</td>"
                                       +"<td>"+listautenti.get(i).getMail()+"</td>"
                                       +"<td>"+listautenti.get(i).getNome()+"</td>");
                            out.println("</tr> ");                             
                             }
                            out.println("</table>"); 
                            %>
                    </div>   
                </div>
            </div>
        </div>
                    <div class="wrapper row4">
                <div class="rnd">
                    
                        <!-- ####################################################################################################### -->
                       <div id="footer" class="clear">
                       <h7>Copyright: </h7><img src="images/logo2_WTW.png" width="100px" ></img>  Gemma Contini & Gianna Ladu 
                       </div>
                        <!-- ####################################################################################################### -->
                    
                        <!-- ####################################################################################################### -->
                  
                </div>
            


    </body>
</html>